package ProjectText
{
    import flash.filesystem.File;
    import flash.filesystem.FileStream
    import flash.filesystem.FileMode;
    import flash.utils.ByteArray;
    
    public class ProjectText
    {
        private var _src:File;
        private var _text:String;
 
        public function ProjectText(src:File) {
            if(src.isDirectory) {
                loadTextFiles();
            } else {
                load();
            }
        }       
    
        private function loadTextFiles():void {
//        for each(f:File in _src.
        }

        private function load():void {
            var fs:FileStream = new FileStream();
            var ba:ByteArray = new ByteArray;
            fs.open(_src, FileMode.READ);
            fs.readBytes(ba, 0, fs.bytesAvailable);
            _text = ba.toString();
            fs.close();
        }
     }
}
        
